package com.ai.mall.dao;

import com.ai.mall.entity.HotSearchesEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 热搜表
 * 
 * @author easue
 * @email sunlightcs@gmail.com
 * @date 2025-01-21 14:40:34
 */
@Mapper
public interface HotSearchesDao extends BaseMapper<HotSearchesEntity> {
    @Select("SELECT keyword FROM hot_searches ORDER BY search_count DESC LIMIT 5")
    List<String> selectHotWords();
}
